html {
  font-family: sans-serif;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: PingFang SC, Source Han Sans SC, Microsoft YaHei, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
}

// ::-webkit-scrollbar-thumb {
//   border-radius: 10px;
//   background: rgba(77, 124, 254, 0.2);
// }

// ::-webkit-scrollbar {
//   width: 6px;
//   height: 6px;
//   visibility: hidden;
// }

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.el-date-editor .el-range-separator {
  box-sizing: content-box;
}

.el-form-item__content {
  line-height: 36px;
}

.el-input__inner {
  height: 36px;
  border-radius: 2px;
  color: #333;
  line-height: 1;
  outline: none;
}

.el-input__icon {
  line-height: 36px;
}

.el-input .el-input__inner {
  border: 1px solid $form-item-border-color;
}

.el-range-editor.el-input__inner {
  padding: 1px 10px;
  border: 1px solid $form-item-border-color;
}

.el-date-range-picker__content.is-left {
  border: 1px solid $form-item-border-color;
}

.el-textarea__inner {
  border-color: $form-item-border-color;
  &:hover,
  &:focus {
    border-color: $form-item-border-color;
  }
}

.el-radio.is-bordered {
  height: 36px;
  padding-top: 10px;
}

.el-button {
  font-weight: 400;
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 400;
  min-width: 90px;
  border-color: $form-item-border-color;

  &--text {
    border-color: transparent;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
  }

  &--small {
    min-width: auto;
    padding: 9px 15px;
    font-size: 12px;
    border-radius: 3px;
  }

  &--mini {
    min-width: auto;
    padding: 7px 15px;
  }

  &.is-circle {
    min-width: auto;
  }
}

.el-input-number.is-controls-right .el-input-number__increase,
.el-input-number.is-controls-right .el-input-number__decrease {
  line-height: 17px;
}

.el-input-number {
  line-height: 36px;
}

.el-dialog__body {
  padding: 16px 32px;
}

.el-dialog__title {
  line-height: 20px;
  font-size: 16px;
  color: #3b434c;
  font-weight: 500;
}

.el-dialog__header {
  border: none !important;
  padding: 24px 20px;
  line-height: 1;
}

.el-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  vertical-align: middle;
}

.el-form-filter {
  margin-bottom: -22px;
}

.clean-modal {
  background: transparent;
  border: none;
  box-shadow: none;
  .el-dialog__header {
    display: none;
  }
  .el-dialog__body {
    padding: 0;
    margin: 0;
  }
}

.compact-modal {
  border: none;
  .el-dialog__header {
    padding-bottom: 10px;
  }
  .el-dialog__body {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.el-image-viewer__wrapper {
  z-index: 3000 !important;
}

.el-input__prefix {
  color: #c0c4cc;
}
.el-input__suffix {
  color: #c0c4cc;
}

.el-input-group__append,
.el-input-group__prepend {
  border-color: $form-item-border-color;
  height: 34px;
  background: #fafafa;
}

.el-input-group {
  line-height: 34px;
  height: 34px;
}

.input-with-select {
  .el-select .el-input {
    width: 130px;
  }
  .el-input-group__prepend {
    background-color: #fff;
  }
  .el-input-group__append {
    background-color: #fff;
  }
}

.input-with-select-lg {
  .el-select .el-input {
    width: 200px;
  }
  .el-input-group__prepend {
    background-color: #fff;
  }
  .el-input-group__append {
    background-color: #fff;
  }
}

.el-transfer-panel .el-transfer-panel__header .el-checkbox .el-checkbox__label {
  font-size: 14px;
}

.kw-selector {
  width: 118px;
  height: 36px;
  border-radius: 2px;
  color: #333;
  line-height: 1;
  outline: none;
}

select {
  width: 480px;
  height: 36px;
  line-height: 36px;
  color: #666;
  font-size: 14px;
  padding: 0 10px;
  border: 1px solid $form-item-border-color;
  border-image: initial;
}

.el-list * {
  outline: none;
}

.el-card-actions {
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;

  &::before {
    display: table;
    content: "";
  }

  &::after {
    display: table;
    clear: both;
    content: "";
  }

  li {
    cursor: pointer;
    float: left;
    margin: 12px 0;
    color: rgba(0, 0, 0, 0.45);
    text-align: center;

    &:not(:last-child) {
      border-right: 1px solid #f0f0f0;
    }
  }
}

.el-card {
  border: 1px solid #f0f5fa;
  border-radius: 2px;
}

.el-table--group,
.el-table--border {
  border: 1px solid #f0f5fa;
}
.el-table {
  color: #3b434c;

  &--border th,
  &--border td {
    border-right: 1px solid #f0f5fa;
  }

  th.is-leaf,
  td {
    border-bottom: 1px solid #f0f5fa;
  }

  .cell {
    word-break: break-word;
  }

  thead {
    height: 40px;
    font-weight: 700;
    color: #3b434c;
    line-height: 18px;
  }
}

.table-column-nowrap .cell {
  white-space: nowrap;
  min-width: 50px;
}

.el-table__fixed-right {
  height: 100% !important;
}

.el-select {
  .el-tag.el-tag--info {
    background: rgba(0, 96, 255, 0.1);
    border: none;
    color: $--color-primary;
  }

  .el-tag.el-tag--info .el-tag__close,
  .el-tag.el-tag--info span {
    color: $--color-primary;
  }

  .el-tag__close.el-icon-close {
    background-color: mix(#fff, $--color-primary, 68%);
    &:hover {
      background-color: inherit;
    }
  }
}

.wEditor {
  line-height: 1.15;

  em.var {
    font-family: monospace, monospace;
    font-size: 1em !important;
    color: #1890ff;
    font-style: normal;
  }
}
